package com.springboot.sakila.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.springboot.sakila.entity.Address;

public interface AddressService {

    Address findById(Integer id);

    void addOne(Address address);

    void modOne(Address address);

    void deleteById(Integer id);

    Page<Address> findPage(String address, String phone, int current, int size,
                           String orderBy,
                           boolean asc);
    Page<Address> findAAndCAndtForPages(String address, String phone, int current, int size,
                                       String orderBy,
                                       boolean asc);

}
